<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>添加用户</title>
</head>
<body>
    <h1>添加用户</h1>
    <form th:action="@{/user/add}" th:object="${user}" method="post">
        <div>
            <label>ID:</label>
            <input type="number" th:field="*{id}" />
        </div>
        <div>
            <label>用户名:</label>
            <input type="text" th:field="*{username}" />
        </div>
        <div>
            <label>邮箱:</label>
            <input type="email" th:field="*{email}" />
        </div>
        <button type="submit">提交</button>
    </form>


</body>
</html> 